package model;

/**
 * Will be spawned by the client when trying to see if there are any games to be
 * joined. In response, the Server will send a response and Map if available.
 * 
 * @author Kevin Luikens
 * 
 */
public class JoinGame extends GameAdministration {
	private boolean gameToJoin;
	private boolean configInProcess;

	/**
	 * Returns a boolean indicating whether there is a joinable game running
	 * @return true if there is a joinable game, false if there is
	 */
	public boolean getGameJoinable() {
		return gameToJoin;
	}

	/**
	 * Sets the game to be joinable
	 * @param b A boolean indicating whether the game is joinable or not.
	 */
	public void setGameJoinable(boolean b) {
		gameToJoin = b;
	}

	/**
	 * Sets the boolean as to whether there is a game being configured.
	 * @param b
	 */
	public void setConfigInProcess(boolean b) {
		configInProcess = b;
	}

	/**
	 * Gets the boolean as to whether there is a game being configured
	 * @return
	 */
	public boolean getConfigInProcess() {
		return configInProcess;
	}

}
